package Car_species;


import Car.Car.Car;

public class Pkc extends Car {

    private double carry_size;
    private int Passenger_size;

    public double getCarry_size() {
        return carry_size;
    }

    public void setCarry_size(double carry_size) {
        this.carry_size = carry_size;
    }

    public int getPassenger_size() {
        return Passenger_size;
    }

    public void setPassenger_size(int passenger_size) {
        Passenger_size = passenger_size;
    }

    @Override
    public String toString() {
        return "车名:" + this.getName() + "; 载客人数" + this.Passenger_size + "人; 载货量" + this.carry_size + "价格为:" + this.getPrice();
    }
}
